package com.sy.utils;

import com.sy.dto.JsonResult;

import javax.servlet.http.HttpServletResponse;

/**
 * @author zbbstart
 * @date 2021/1/12 - 22:53
 */
public class StateUtils {
    private StateUtils(){

    }

    public static JsonResult is500(HttpServletResponse res){
        JsonResult result = new JsonResult();
        result.setCode(500);
        result.setErrMsg("服务器异常");
        res.setStatus(result.getCode());
        return result;
    }
}
